* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面背景和字体 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
   
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app{
    width: 100vw;
    height: 100vh;
    overflow-y: hidden;
    display: flex;
    padding: 10px 10%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    
}
/* 主区域样式 */
.main {
   
    max-width: 1000px;
    width: 100%;
}
.box{
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 32px;
    width: 68%;
    min-width: 420px;
    max-width: 1000px;
    width: 100%;
    height: 30vh;
    text-align: center;
}

/* 标题样式 */
.main h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
}

/* 文件输入框样式 */
.main input[type="file"] {
    display: block;
    margin: 0 auto 20px;
    padding: 1.5vh ;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fafafa;
    width: 60%;
    height: 30%;
    /* max-width: 400px; */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 输入框聚焦和悬停效果 */
.main input[type="file"]:focus,
.main input[type="file"]:hover {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

/* 转换按钮样式 */
.main #convertButton {
    background-color: #4a90e2;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    vertical-align: center;
    min-width: 78px;
    min-height: 45px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 20%;
    height: 25%;
}

/* 按钮悬停和点击效果 */
.main #convertButton:hover {
    background-color: #357abd;
    transform: translateY(-1px);
}

.main #convertButton:active {
    transform: translateY(0);
}

/* 禁用按钮样式 */
.main #convertButton:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 结果区域样式 */
/* #result {
    width: 56%;
    min-width: 600px; 
    min-height: 100px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 24px;
    font-size: 16px;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 16px;
} */

/* 动态内容样式（假设结果包含按钮和预览） */
/* #result button {
    background-color: #28a745;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#result button:hover {
    background-color: #218838;
}

#result #previewArea {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background-color: #fafafa;
    overflow-x: auto;
} */

/* 错误信息样式 */
/* #result:empty::before {
    content: "No results yet.";
    color: #888;
    font-style: italic;
} */

/* 响应式设计 */
@media (max-width: 480px) {
    .main {
        padding: 20px;
    }

    .main h1 {
        font-size: 24px;
    }

    .main input[type="file"] {
        max-width: 100%;
    }

    #result {
        padding: 16px;
    }
}